#include "belt_define.h"

Belt_Define::Belt_Define(double process_speed, int groupIdx)
    :FacilityDefine(
        FacilityType::BELT,
        process_speed,
        1,
        1,
        1,
        1,
        groupIdx
        )
{
    ExitGate r_exist= ExitGate(
        Coordinate(0,0),
        gate::GateDirection::Gate_UP);
    switch(groupIdx){
    case 0:/// 0 直的
        break;
    case 1:/// 1 左
        r_exist.direction = gate::GateDirection::Gate_LEFT;
        break;
    case 2:/// 2 右
        r_exist.direction = gate::GateDirection::Gate_RIGHT;
        break;
    default:
        std::clog << "groupIdx out of range";
        break;
    }
    EnterGate r_enter = EnterGate(
        Coordinate(0,0),
        gate::GateDirection::Gate_DOWN
        );


    relative_exits.push_back(r_exist);
    relative_enters.push_back(r_enter);
}
